﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using XClient.ViewModels.Preferences;
using Microsoft.Practices.Unity;

namespace XClient.Views.Preferences
{
    /// <summary>
    /// Interaction logic for AccountView.xaml
    /// </summary>
    public partial class AccountView : UserControl
    {
        #region · Fields ·

        private AccountViewModel viewModel;

        #endregion

        #region · Properties ·

        public AccountViewModel ViewModel
        {
            get { return this.ViewModel; }
            private set
            {
                this.viewModel = value;
                this.DataContext = this.viewModel;
            }
        }

        #endregion

        #region · Constructors ·

        public AccountView(IUnityContainer container)
        {
            InitializeComponent();
            this.ViewModel = container.Resolve<AccountViewModel>();
        }

        #endregion
    }
}
